package com.ambimmort.shj.action.logmanage;

import com.ambimmort.shj.service.logmanageService.LogmanageService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletRequest;

/**
 * Created by ma on 2015/7/30.
 */
@Controller("/action/log/device/list.do")
public class QueryDevice {

    private LogmanageService logmanageService;

    @RequestMapping("/action/log/device/list.do")
    @ResponseBody
    public boolean action_queryDeviceService(HttpServletRequest request) {
        try {
            logmanageService.queryDeviceService();
            return true;
        } catch (Throwable throwable) {
            throwable.printStackTrace();
            return false;
        }
    }
}
